using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;

namespace RapidHDL
{
    public class DisplayManager
    {
        System.Collections.ArrayList oTreeViews;

        public DisplayManager()
        {
            oTreeViews = new ArrayList();
        }

        public void RegisterTreeView(HardwareTreeVeiw poTreeView)
        {
            oTreeViews.Add(poTreeView);
        }

        public void Refresh()
        {
            foreach (HardwareTreeVeiw oTreeView in oTreeViews)
            {
                oTreeView.RefreshTree();
            }
        }

        public void UnregisterTreeView(HardwareTreeVeiw poTreeView)
        {
            oTreeViews.Remove(poTreeView);
        }

    }
}
